package com.wq.gof.designer.chain.pointer;

/**
 * @Author: wangqiang20995
 * @Date:2019/1/25
 * @Description:哨兵，放在最后，无论什么handler都会处理
 * @Resource:
 */
public class SentinelEventHandler extends AbstractPointerEventHandler {

    @Override
    public void doHandler(String name, Integer level) {
        System.out.println("哨兵handler处理事件[" + name + "][" + level + "]");
        return;
    }

    @Override
    public long frequency() {
        return Integer.MAX_VALUE;
    }
}
